import http from '@/utils/request';
export default {

  async getSupplierList(params) {
    return await http.get("/api/supplier/listPage",params);
  },

  async getListAll(params) {
    return await http.get("/api/supplier/List",params);
  },

  async AddSupplier(params){
    return await http.post("/api/supplier/add",params)
  },

  async DelSupplier(params){
    return await http.delete("/api/supplier/delete/"+params)
  },

  async EditSupplier(p){
    return await http.put("/api/supplier/update",p)
  },

  async selectByCode(params){
    return await http.get("/api/supplier/selectBySupplierCode/"+params)
  }
}
